package com.hongbo.plugin

import com.android.build.gradle.AppExtension
import org.gradle.api.Plugin
import org.gradle.api.Project

/**
 * Created by ZhaoHongBo on 2022/4/21.*/
class LogPlugin implements Plugin<Project> {
    @Override
    void apply(Project project) {
        println("Hongbo, I am a plugin !");

        def android = project.extensions.getByType(AppExtension)
        android.registerTransform(new TraceTransform())
    }
}
